import request from '@/utils/request'

export function getList(query) {
  return request({
    url: '/sysm/employee/listPage',
    method: 'get',
    params: query
  })
}

export function saveOrUpdate(param) {
  return request.post('/sysm/employee/saveOrUpdate', JSON.stringify(param))
}

export function deleteById(id) {
  return request({
    url: `/sysm/employee/${id}`,
    method: 'delete'
  })
}
export function employee(id) {
  return request({
    url: `/sysm/employee/${id}`,
    method: 'get'
  })
}


export function getListfiles(query) {
  return request({
    url: '/sysm/employeeFiles/listPage',
    method: 'get',
    params: query
  })
}

export function saveOrUpdatefiles(param) {
  return request.post('/sysm/employeeFiles/saveOrUpdate', JSON.stringify(param))
}

export function deleteByIdfiles(id) {
  return request({
    url: `/sysm/employeeFiles/${id}`,
    method: 'delete'
  })
}



